home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-02 / lysrc.zip / README.SRC < prev    next >
Text File  |  1993-01-24  |  3KB  |  71 lines

  1.  
  2. TP Lex and Yacc Version 3.0a [May 92] Sources
  3.  
  4. Copyright (c) 1990-92 by Albert Graef, Schillerstr. 18,
  5. 6509 Schornsheim/Germany (ag@muwiinfa.geschichte.uni-mainz.de)
  6. All rights reserved
  7.  
  8. NO WARRANTY: The sources are provided as is. The author is not liable for
  9. any errors in the source modules or any damages or other consequences of
  10. their use. There also is no warranty that the programs fit any particular
  11. purpose.
  12.  
  13. The TP Lex and Yacc programs consist of 23 modules with about 11000 lines
  14. of code. A short description of each of the source modules is given below.
  15.  
  16. To compile TP Lex and Yacc, you need Turbo Pascal 6.0 (may also work with
  17. Turbo Pascal 5.0/5.5, but I have not tested it). Compile the following
  18. four source files using the built-in make function of Turbo Pascal (or tpc
  19. command line option /M), with I/O checking turned off (compiler directive
  20. $I- or tpc command line option /$I-). (Also, you will usually turn the
  21. debugging options ($D and $L) off.)
  22.  
  23. - LEXLIB.PAS
  24. - YACCLIB.PAS
  25. - LEX.PAS
  26. - YACC.PAS
  27.  
  28. You then have a running version of TP Lex and Yacc. The source file of
  29. the TP Yacc parser and main program (which is implemented with TP Yacc
  30. itself) is contained in YACC.Y. This file may be fed into TP Yacc to
  31. generate the YACC.PAS file. To bootstrap TP Yacc, once you have a
  32. YACC.EXE, you can recompile YACC.Y with TP Yacc as follows:
  33.  
  34. yacc yacc myyacc
  35.  
  36. Then try:
  37.  
  38. fc yacc.pas myyacc.pas
  39.  
  40. The two files should not differ.
  41.  
  42.  
  43. Description of the Source Modules
  44. ---------------------------------
  45.  
  46. LEX      PAS        TP Lex main program
  47. LEXBASE  PAS        base module (global declarations)
  48. LEXDFA   PAS        DFA construction algorithm
  49. LEXLIB   PAS        TP Lex library unit
  50. LEXLIST  PAS        listing operations
  51. LEXMSGS  PAS        messages and error handling
  52. LEXOPT   PAS        DFA optimization algorithm
  53. LEXPOS   PAS        operations to construct the position table
  54. LEXRULES PAS        parser for TP Lex grammar rules
  55. LEXTABLE PAS        internal tables used by the TP Lex program
  56.  
  57. YACC     PAS        TP Yacc parser and main program
  58. YACC     Y        TP Yacc source for YACC.PAS
  59. YACCBASE PAS        base module (global declarations)
  60. YACCCLOS PAS        closure and first set construction algorithms
  61. YACCLIB  PAS        TP Yacc library unit
  62. YACCLOOK PAS        LALR lookahead computation algorithm
  63. YACCLR0  PAS        LR(0) set construction algorithm
  64. YACCMSGS PAS        messages and error handling
  65. YACCPARS PAS        parse table construction
  66. YACCSEM  PAS        semantic routines of the TP Yacc parser
  67. YACCTABL PAS        internal tables used by the TP Yacc program
  68.  
  69. YYLEX    COD        code template for the lexical analyzer routine
  70. YYPARSE  COD        code template for the LALR parser routine
  71.